package com.hd.controller;

import com.hd.rabbit.producer.MqProducer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/test")
public class TestController {
//    @Autowired
//    private MqProducer mqProducer;
//    @RequestMapping("/order")
//    @ResponseBody
//    public Object testOrderMQ(){
//        mqProducer.sendDataToQueue("order","测试order");
//        return "测试成功";
//    }
//    @RequestMapping("/activity")
//    @ResponseBody
//    public Object testActivityMQ(){
//        mqProducer.sendDataToQueue("activity","测试activity");
//        return "测试成功";
//    }
//    @RequestMapping("/mail")
//    @ResponseBody
//    public Object tesMailMQ(){
//        mqProducer.sendDataToQueue("mail","测试mail");
//        return "测试成功";
//    }
}
